﻿<script type="text/javascript" src="<?php echo $this->webroot; ?>/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
        // General options
        mode : "textareas",
        theme : "advanced",
        plugins : "autolink,lists,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",

        // Theme options
        theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
        theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
        theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
        theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage",
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left",
        theme_advanced_statusbar_location : "bottom",
        theme_advanced_resizing : true,

        // Skin options
        skin : "o2k7",
        skin_variant : "silver",

        // Example content CSS (should be your site CSS)
        content_css : "/css/example.css",

        // Drop lists for link/image/media/template dialogs
        template_external_list_url : "/js/template_list.js",
        external_link_list_url : "/js/link_list.js",
        external_image_list_url : "/js/image_list.js",
        media_external_list_url : "/js/media_list.js",

        // Replace values for the template plugin
        template_replace_values : {
                username : "Some User",
                staffid : "991234"
        }
});
</script>
<h1 align="center"> ĐĂNG TIN NHANH <h1>
<div class="customerposts_form">
	<!-- phan muc ------------------>
	<table width=750px id="tablecss">
		<tr>
			<td class="navtinmoi" width="40%" height="30">
				<div align="">
				<span class="style_hoan" >
					<strong> Nội dung tin đăng </strong>
				</span>
				</div>
		</tr>
	</table>
	<!------------------------------>
	<?php echo $this->Form->create('Post');?>
	<table width=750px id="tablecss" cellspacing="1">
		<tr>
			<td id="input_left">
				<span class="style_hoan2" >
					<strong> Tiêu đề </strong>
				</span>
			</td>
			<td id="input_right">
				<?php echo $this->Form->input('tieude',array('label'=>''));?>
			</td>
		</tr>
		<tr height="100">
			<td id="input_left" valign="top">
				<span class="style_hoan2" >
					<strong> Nội dung </strong>
				</span>
			</td>
			<td id="input_right">
			<?php echo $this->Form->input('noidung',array('label'=>''));?>
			</td>
		</tr>
		<tr>
			<td id="input_left">
				<span class="style_hoan2" >
					<strong> Danh mục </strong>
				</span>
			</td id="input_right">
			<td>
				<?php echo $this->Form->input('catalog_id',array('label'=>''));?>
			</td>
		</tr>
		<tr>
			<td id="input_left">
				<span class="style_hoan2" >
					<strong> Loại Tin </strong>
				</span>
			</td id="input_right">
			<td>
				<?php echo $this->Form->input('type_id',array('label'=>''));?>
			</td>
		</tr>
		<tr>
			<td id="input_left">
				<span class="style_hoan2" >
					<strong> Tỉnh Thành </strong>
				</span>
			</td>
			<td id="input_right">
				<?php echo $this->Form->input('tinhthanh',array('label'=>''));?>
			</td>
		</tr>
	</table>
	<!-- phan dien thong tin lien he ------------------------------>
	<?php echo $this->Form->create('Customerpost');?>
	<table width=750px align="center">
		<tr>
			<td class="navtinmoi" width="40%" height="30">
				<div align="">
				<span class="style_hoan" >
					<strong> Thông tin liên hệ </strong>
				</span>
				</div>
		</tr>
	</table>
	<table width=750px id="tablecss">
		<tr>
			<td>
				<span class="style_hoan2" >
					<strong> Tên liên hệ </strong>
				</span>
			</td>
			<td>
				<?php echo $this->Form->input('tenlienhe',array('label'=>''));?>
			</td>
		</tr>
		<tr>
			<td>
				<span class="style_hoan2" >
					<strong> email </strong>
				</span>
			</td>
			<td>
				<?php echo $this->Form->input('email',array('label'=>''));?>
			</td>
		</tr>
		<tr>
			<td>
				<span class="style_hoan2" >
					<strong> Di động </strong>
				</span>
			</td>
			<td>
				<?php echo $this->Form->input('tel',array('label'=>''));?>
			</td>
		</tr>
		<tr>
			<td>
				<span class="style_hoan2" >
					<strong> Nick yahoo </strong>
				</span>
			</td>
			<td>
				<?php echo $this->Form->input('yahoo',array('label'=>''));?>
			</td>
		</tr>
		<!--
		<tr>
			<td>
				<span class="style_hoan2" >
					<strong> Mật khẩu sửa tin </strong>
				</span>
			</td>
			<td>
				<?php echo $this->Form->password('matkhau',array('label'=>''));?>
			</td>
		</tr>-->
	</table>
	<!------------------------------------------------------------->
	<table width=650px align="center">
		<tr>
			<td>
			<span class="style_hoan2" >
				<?php echo $this->Form->end(__('ĐĂNG TIN', true));?>
			</span>
			</td>
		</tr>	
	</table>
</div>